package com.zzyl.service;

import com.zzyl.base.PageResponse;
import com.zzyl.dto.UserDto;
import com.zzyl.vo.UserVo;

import java.util.List;

public interface UserService {
    /**
     * 用户分页
     * @param userDto
     * @param pageNum
     * @param pageSize
     * @return
     */
    PageResponse<UserVo> list(UserDto userDto, int pageNum, int pageSize);

    /**
     * 用户添加
     * @param userDto
     * @return
     */
    Boolean createUser(UserDto userDto) throws CloneNotSupportedException;

    /**
     * 用户修改
     * @param userDto
     * @return
     */
    Boolean update(UserDto userDto) throws CloneNotSupportedException;

    /**
     * 启用禁用
     * @param id
     * @param status
     */
    Boolean updateStatus(Long id, String status);

    /**
     * 删除用户
     * @param userIds
     */
    Boolean delete(Long userIds);

    /**
     * 密码重置
     * @param userId
     * @return
     */
    Boolean updatePassword(Long userId);

    /**
     * 用户列表
     * @param userDto
     * @return
     */
    List<UserVo> findList(UserDto userDto) throws CloneNotSupportedException;
}
